<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文档管理</title>
<link rel="stylesheet" type="text/css" href="../img/base.css">
<script language="javascript">
function editArc(mid){
	if(mid == 0)
	{
		alert("请选择模块！");
		return false;
	}
	location = "admin_module_edit.php?mid="+mid;
}
function delArc(mid){
	if(mid == 0)
	{
		alert("请选择模块！");
		return false;
	}
	if (confirm("是否删除模版？\n\n确定->删除\n\n取消->不删除"))
	{
		location = "admin_module_main.php?mid="+mid+"&action=move";
	}
}
</script>
</head>
<body leftmargin="8" topmargin="8" background='../img/allbg.gif'>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" align="center">
	<tr>
		<td align='center' valign='top'>
			<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA">
				<tr>
    				<td height="26" background="../img/newlinebg3.gif">
    					<table width="98%" border="0" cellspacing="0" cellpadding="0">
     						<tr>
     							<td align="right">
  									<input type='button' class="coolbg np" onClick="location='admin_module_add.php?';" value='添加模块' />
								</td>
     						</tr>
    					</table>
    				</td>
    			</tr>
 			</table>
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr bgcolor="#FFFFFF">
                	<td height="4"></td>
                </tr>
			</table>
			<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA">
				<tr bgcolor="#E7E7E7">
					<td height="24" colspan="9" background="img/tbg.gif">§模块管理 &gt; 模块列表 &nbsp;</td>
				</tr>
                <tr align="center" bgcolor="#FAFAF1" height="22">
                    <td width="6%">ID</td>
                    <td width="8%">模块名称</td>
                    <td width="10%">模块代码</td>
                    <td width="10%">父模块</td>
                    <td width="5%">等级</td>
                    <td width="10%">操作</td>
                </tr>
                <{foreach item=adminModule from=$adminModuleList}>
                <tr align='center' bgcolor="#FFFFFF"  onMouseMove="javascript:this.bgColor='#f4fbf4';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                    <td><{$adminModule.module_id}></td>
                    <td><{$adminModule.module_name}></td>
                    <td><{$adminModule.module_code}></td>
                    <td><{$adminModule.parent_name}></td>
                    <td><{$adminModule.rank}></td>
                    <td>
                        <a href="javascript:editArc(<{$adminModule.module_id}>)">编辑</a> |
                        <a href="javascript:delArc(<{$adminModule.module_id}>)">删除</a>
                    </td>
                </tr>
                <{/foreach}>
                <tr bgcolor="#FAFAF1">
                	<td height="24" colspan="9">&nbsp;</td>
                </tr>

                <tr align="right" bgcolor="#EEF4EA">
                	<td height="20" colspan="9" align="center"></td>
                </tr>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                	<td height="4"></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                	<td height="26"></td>
                </tr>
				<tr>
					<td colspan="2" height="4"></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</body>
</html>